package com.gao.modules.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gao.modules.user.pojo.SysUser;
import com.gao.modules.user.vo.SysUserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser> {
    Integer existNumByUserName(@Param("userName") String userName);

    IPage<SysUserVo> queryDepartAllUser(Page page, @Param("departName") String departName);

    IPage<SysUserVo> queryDepartAllUserById(Page page,@Param("departId") String departId);

    List<SysUserVo> queryDepartAllUserByIdBeList(@Param("departId") String departId);
}
